package com.wq.ui;

import com.wq.ui.coms.BasicMenuPane;
import com.wq.ui.coms.ImageGet;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.awt.*;

@RequiredArgsConstructor(onConstructor_ = {@Autowired})
@Component
public class RulePanel extends BasicMenuPane {

    @PostConstruct
    public void inti(){
        render(1, false);
        setBounds(0, 0, 1000, 800);
        init(100, 50, 70, false);
        setNames(new String[]{"返回"});
        transform(0, 200);
        setBackImage(ImageGet.getImageGet().getRule());
        changeColor(new Color(154, 86, 42), new Color(135, 67, 23), new Color(154, 86, 42).darker());
        transform(0, 50);
    }
}
